package cc.rengu.igas.channel.cpcn.common.enums;

/**
 * @author wukefan
 * @version 1.0.0
 * @date 2020/7/16 15:00
 */
public enum RespCodeEnum {

    REQ_CONSTRUCT_ERR("ER21ZJ01", "请求构造失败,缺失必要参数"),
    GENERATE_SIGN_BLOCK_ERROR("ER22ZJ01", "生成签名字符串失败"),
    REQ_API_GENERATE_FAIL_ERR("ER22ZJ02", "API生成请求报文失败"),
    CHANNEL_CONFIG_NOT_EXIST("ER22ZJ03", "通道配置不存在"),
    CERT_INFO_NOT_EXIST("ER22ZJ04", "证书配置不存在"),
    RESP_INFO_NOT_MATCH_RELUS("ER22ZJ05", "应答报文不符合中金报文接口规范"),
    SYSTEM_ERROR("ER129999", "系统异常"),
    SUCCESS("2000", "OK.");
    private String respCode;
    private String respDesc;

    RespCodeEnum(String respCode, String respDesc) {
        this.respCode = respCode;
        this.respDesc = respDesc;
    }

    public String getRespCode() {
        return respCode;
    }

    public void setRespCode(String respCode) {
        this.respCode = respCode;
    }

    public String getRespDesc() {
        return respDesc;
    }

    public void setRespDesc(String respDesc) {
        this.respDesc = respDesc;
    }
}
